package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.WorkCenter;
import com.nbsaas.boot.manufacturing.api.domain.simple.WorkCenterSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 工作中心-列表对象转换器
*/

public class WorkCenterSimpleConvert implements Converter<WorkCenterSimple, WorkCenter> {




@Override
public WorkCenterSimple convert(WorkCenter source) {
    WorkCenterSimple result = new WorkCenterSimple();

                result.setStandardHourRate(source.getStandardHourRate());
                result.setNote(source.getNote());
                result.setSafetyRequirements(source.getSafetyRequirements());
                result.setProductionCapacity(source.getProductionCapacity());
                result.setMaxBatchSize(source.getMaxBatchSize());
                result.setDescription(source.getDescription());
                result.setWorkCenterType(source.getWorkCenterType());
                result.setSetupHourRate(source.getSetupHourRate());
                result.setEquipmentUtilization(source.getEquipmentUtilization());
                result.setEnvironmentalRequirements(source.getEnvironmentalRequirements());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());
                result.setArea(source.getArea());
                result.setLaborUtilization(source.getLaborUtilization());
                result.setManager(source.getManager());
                result.setAddDate(source.getAddDate());
                result.setMinBatchSize(source.getMinBatchSize());
                result.setTechnicalParameters(source.getTechnicalParameters());
                result.setWorkCenterCode(source.getWorkCenterCode());
                result.setName(source.getName());
                result.setWorkshopId(source.getWorkshopId());
                result.setIsCritical(source.getIsCritical());
                result.setLocation(source.getLocation());
                result.setContactPhone(source.getContactPhone());
                result.setStatus(source.getStatus());


    return result;
}

}